package com.codez.unionpay.guava.recursion;

import java.util.LinkedList;
import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @author 干净的代码
 * @创建时间 ： 2019-07-01
 * 
 */

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class TreeNode {

	private Integer id;

	private String level;

	private String name;

	private Integer pid;
	
	private List<TreeNode> children = new LinkedList<>();

	public TreeNode(Integer id, String level, String name, Integer pid) {
		super();
		this.id = id;
		this.level = level;
		this.name = name;
		this.pid = pid;
	}
	
}
